package util.qualitycontainers.qualities.generics;

import util.qualitycontainers.qualities.BuildComponent;
import util.qualitycontainers.qualities.IComponent;


public abstract class BasicQuality extends BuildComponent
{

    protected Object myState;


    public BasicQuality (Object o)
    {
        myState = o;
    }


    public Object get ()
    {
        return myState;
    }


    @Override
    public void setTo (IComponent q)
    {
        myState = (this.getClass().cast(q).get());

    }


    @Override
    public boolean equals (BuildComponent bq)
    {
        return this.get().equals(((BasicQuality) bq).get());
    }

}
